<!DOCTYPE html>
<html><body contenteditable="true">
<script src="../../../resources/js-test.js"></script>

<p>ASSERT should not be triggered when type is changed in focus event.</p>

<div id="container">
    <input id="input" type="time" style="margin-top: 1000px;">
</div>
<pre id="console"></pre>

<script>
jsTestIsAsync = true;

input.addEventListener('focus', function() {
    input.type = 'text;'
});

setTimeout(function() {
    eventSender.keyDown('\t');
    eventSender.keyDown('\t');
    setTimeout(function() {
        container.innerHTML = 'PASS unless crash.';
        finishJSTest();
    }, 0);
}, 0);
</script>
</body></html>
